﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace T1task1
{
    class Program
    {
        static void Main(string[] args)
        {



            Game jnbg = new Game();
            jnbg.name = "纪念碑谷";
            jnbg.category = "冒险解谜类手游";
            jnbg.price = 30;
            jnbg.stock = 100;
            jnbg.addTime = DateTime.Now;//添加日期为今天

            Game ckxt = new Game();
            ckxt.name = "刺客信条";
            ckxt.category = "角色解谜类手机游戏";
            ckxt.price = 28;
            ckxt.stock = 100;
            ckxt.addTime = DateTime.Now;

            Game eyaxz = new Game();
            eyaxz.name = "鳄鱼爱洗澡";
            eyaxz.category = "休闲益智类手机游戏";
            eyaxz.price = 6;
            eyaxz.stock = 100;
            eyaxz.addTime = DateTime.Now;

            Game[] gamelist = new Game[3];
            gamelist[0] = jnbg;  //纪念碑谷
            gamelist[1] = ckxt;  //刺客信条
            gamelist[2] = eyaxz; //鳄鱼爱洗澡


            Console.WriteLine("游戏名称\t\t游戏类型\t\t游戏价格\t库存数量");
            Console.WriteLine();
            for (int i = 0; i < gamelist.Length; i++)
            {
                Console.WriteLine("{0}\t\t{1}\t\t{2}\t\t{3}", gamelist[i].name,
                gamelist[i].category, gamelist[i].price, gamelist[i].stock);
                Console.WriteLine();
            }

        }
    }
}
